package com.bup.gn.controller.admin;

import com.bup.gn.model.Article;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class MyArticleController {
    @RequestMapping("/admin/my-articles.html")
    public String myArticles() {
        return "admin/articles.html";
    }

    @RequestMapping("/admin/new-article.html")
    public String newArticle() {
        return "admin/article.html";
    }

    @RequestMapping("/admin/process-new-article.html")
    public String processNewArticle(Article article) {
        return "admin/article.html";
    }
}
